<?php


namespace dsp\factory\abstracts;


use dsp\factory\abstracts\color\Blue;
use dsp\factory\abstracts\color\Red;

class ColorFactory extends AbstractFactory
{

    public function getColor(string $color): Color
    {
        switch ($color) {
            case 'red':
                return new Red();
            case 'blue':
                return new Blue();
        }
    }

    public function getShape(string $shape): Shape
    {
        // TODO: Implement getShape() method.
    }
}